package com.lc.pianostudent.activity;

import android.os.Bundle;


import com.lc.pianostudent.BaseApplication;
import com.lc.pianostudent.R;
import com.lc.pianostudent.widget.GuideView;
import com.zcx.helper.pager.Guide;

/**
 * Created by Administrator on 2016/3/14.
 */
public class GuideActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_guide);


        GuideView guideView = (GuideView) findViewById(R.id.guide_guide_view);

        guideView.addLayoutId(R.layout.item_guide_one, R.layout.item_guide_two, R.layout.item_guide_three);

        guideView.setOnEndListener(new Guide.OnEndListener() {

            @Override
            public void onEnd() {

                BaseApplication.BasePreferences.saveIsGuide(true);
                BaseApplication.BasePreferences.saveIsYaoyiyao(true);
                BaseApplication.BasePreferences.saveIsVoice(true);
                startVerifyActivity(NavigationActivity.class);
                finish();

            }

        });

    }

}
